package com.etc.threaddemo;

/**
 * @author: knowno
 * @create: 2024-09-13 09:16
 * @Version 1.0
 **/
public class TestThread {
    public static void main(String[] args) {

        //创建线程对象
        Thread thread1 = new Thread();

        //启动线程
        thread1.start();
        System.out.println(thread1.getId()+","+thread1.getName());

        Thread thread2 = new Thread("测试线程");

        thread2.start();
        System.out.println(thread2.getId()+","+thread2.getName());

    }
}
